<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
    <title>落地页</title>
    <style>
        html,
        body {
            padding: 0;
            margin: 0;
            width: 100%;
            overflow-x: hidden;
        }

        body {
            height: 438.53333333333335vw;
            background-image: url('./img/bj.jpg');
            background-size: 100% 100%;
            position: relative;
        }

        /* 轮播 */
        .swiper {
            position: relative;
            left: 10vw;
            top: 230vw;
            overflow: hidden;
            width: 80vw;
        }

        .swiper_box {
            height: 50vw;
            display: flex;
            align-items: center;
            transition: all ease .3s;
        }

        .swiper_item {
            width: 80vw;
            height: 50vw;
        }

        .swiper_dots {
            width: 80vw;
            height: 10vw;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .swiper_dot {
            width: 1.5vw;
            height: 1.5vw;
            border-radius: 50%;
            background-color: #fff;
            border: 0.3vw solid #7BFDFF;
            margin: 0 0.7vw;
            opacity: 0.5;
        }

        .active_dot {
            opacity: 1;
        }


        /* 动画文案 */
        @keyframes textAni {
            0% {
                transform: scale(1);
            }

            5% {
                transform: scale(1.1);
            }

            10% {
                transform: scale(1);
            }

            70% {
                transform: scale(1);
            }

            75% {
                transform: scale(1.1);
            }

            80% {
                transform: scale(1);
            }

            100% {
                transform: scale(1);
            }
        }

        @keyframes flashAni {
            0% {
                transform: translateX(-10vw);
            }

            0.1% {
                transform: translateX(5vw);
            }

            10% {
                transform: translateX(26vw);
            }

            20% {
                transform: translateX(62vw);
            }

            69.9% {
                transform: translateX(62vw);
            }

            70% {
                transform: translateX(-10vw);
            }

            70.1% {
                transform: translateX(5vw);
            }

            80% {
                transform: translateX(26vw);
            }

            90% {
                transform: translateX(62vw);
            }

            100% {
                transform: translateX(62vw);
            }
        }

        .text-ani {
            position: absolute;
            z-index: 1;
            background-size: 100% 100%;
            overflow: hidden;
            animation: textAni 2s linear infinite;
        }

        .text-300 {
            background-image: url('./ani/wz_02.png');
            height: 13vw;
            width: 31vw;
            top: 44vw;
            left: 60vw;
        }

        .text-15 {
            background-image: url('./ani/wz_01.png');
            height: 13vw;
            width: 61vw;
            top: 56vw;
            left: 33vw;
            animation-delay: 200ms;
        }

        .flash {
            height: 8vw;
            width: auto;
            position: absolute;
            top: 2.5vw;
            left: 0;
            animation: flashAni 2s linear infinite;
        }

        .text-15 .flash {
            animation-delay: 200ms;
        }


        /* 下载按钮 */
        @keyframes btnAni1 {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }

            100% {
                opacity: 1;
            }
        }

        @keyframes btnAni2 {
            0% {
                transform: rotate(0);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes btnAni3 {
            0% {
                transform: translateY(-5vw);
                opacity: 0;
            }

            30% {
                transform: translateY(-5vw);
                opacity: 0;
            }

            40% {
                transform: translateY(1vw);
                opacity: 1;
            }

            50% {
                transform: translateY(0);
                opacity: 1;
            }

            55% {
                transform: translateY(1vw);
                opacity: 1;
            }

            60% {
                transform: translateY(-1vw);
                opacity: 1;
            }

            90% {
                transform: translateY(5vw);
                opacity: 0.5;
            }

            99% {
                transform: translateY(5vw);
                opacity: 0;
            }

            100% {
                transform: translateY(-5vw);
                opacity: 0;
            }
        }

        .download_btn {
            position: absolute;
            width: 70vw;
            height: 22.5vw;
            top: 148vw;
            left: 50%;
            transform: translateX(-50%);
            background-image: url('./ani/mr.png');
            background-size: 100% 100%;
        }

        .download_btn_bg {
            width: 70vw;
            height: 22.5vw;
            animation: btnAni1 2s ease infinite;
        }

        .download_btn_ball {
            position: absolute;
            z-index: 2;
            width: 16vw;
            height: 16vw;
            right: 3vw;
            top: 3vw;
            animation: btnAni2 1s linear infinite;
        }

        .download_box {
            position: absolute;
            z-index: 3;
            width: 6vw;
            height: 6vw;
            right: 8vw;
            top: 8vw;
            overflow: hidden;
        }

        .download_box_base {
            position: absolute;
            z-index: 9;
            width: 6vw;
            height: 2.212vw;
            bottom: 0;
            left: 0;
        }

        .download_box_arrow {
            position: absolute;
            z-index: 9;
            width: 5vw;
            height: 4vw;
            top: 0;
            left: calc(50% - 2.5vw);
            animation: btnAni3 2s linear infinite;
        }

        /* 表单 */
        .form {
            width: 72vw;
            position: absolute;
            z-index: 9;
            left: calc(50% + 1vw);
            transform: translateX(-50%);
            top: 90vw;
            height: 36vw;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: stretch;
            box-sizing: border-box;
            padding-top: 0.5vw;
            padding-bottom: 0.2vw;
        }

        .item {
            width: 100%;
            height: 6vw;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .item .ipt {
            flex: 1;
            font-size: 3.2vw;
            border: none;
            outline: none;
            background-color: rgba(0, 0, 0, 0);
        }

        .item .icon {
            width: 4vw;
            height: 4vw;
            margin: 0 2vw;
        }

        .item .hidden_icon {
            width: 0;
            height: 0;
            margin: 0;
        }

        .item .otp {
            width: 20vw;
            height: 7vw;
        }

        .item .otp img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    </style>
    <script>
        function isMobile() {
            const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;
            return mobileRegex.test(navigator.userAgent);
        }
        if (!isMobile()) {
            location.href = './index.html'
        }
    </script>
    <script src="./js/EncodeUtils.js"></script>
    <script src="./js/fp.min.js"></script>
</head>

<body>
    <!-- cskh -->
    <a href="#" style="position: fixed;z-index: 99;top: 5vw;left: 4vw;">
        <img style="width: 13vw;height: 13vw;" src="./img/cskh_icon.png" alt="cskh">
    </a>
    <!-- facebook -->
    <a href="#" style="position: fixed;z-index: 99;top: 4vw;right: 4vw;">
        <img style="width: 12vw;height: 12vw;" src="./img/facebook_icon.png" alt="facebook">
    </a>
    <!-- telegram -->
    <a href="#" style="position: fixed;z-index: 99;top: 15vw;right: 4vw;">
        <img style="width: 12vw;height: 12vw;" src="./img/Telegram_icon.png" alt="telegram">
    </a>
    <!-- form title -->
    <img style="position: absolute;z-index: 1;top: 45vw;left: 3.5vw;width: 57vw;" src="./img/btwz_wz.png" alt="img">
    <div class="text-ani text-300">
        <img class="flash" src="./ani/sgt.png" alt="img">
    </div>
    <div class="text-ani text-15">
        <img class="flash" src="./ani/sgt.png" alt="img">
    </div>

    <!-- form -->
    <img style="position: absolute;z-index: 2;top: 67vw;left: 1vw;width: 98vw;height: auto;" src="./img/srk_bj.png"
        alt="img">
    <img style="position: absolute;z-index: 3;top: 127vw;left: calc(50% - 34vw);width: 68vw;height: auto;"
        src="./img/Button_01.png" alt="img">
    <img onclick="login()" class="login_btn"
        style="position: absolute;z-index: 5;top: 131vw;left: calc(50% - 20vw);width: 40vw;height: auto;"
        src="./img/Button_mrwz.png" alt="img">
    <img onclick="register()" class="register_btn"
        style="position: absolute;z-index: 1;top: 131vw;left: calc(50% - 16vw);width: 32vw;height: auto;"
        src="./img/btan_wzyc.png" alt="img">

    <!-- form-content -->
    <div class="form">
        <div class="item">
            <img class="icon" src="./img/yum_icon.png" alt="img">
            <input id="username" type="text" class="ipt" placeholder="Tên tài khoản">
        </div>
        <div class="item">
            <img class="icon" src="./img/mm_icon.png" alt="img">
            <input id="password" type="password" class="ipt" placeholder="Mật khẩu">
            <img id="p_open" class="icon" src="./img/yjg_icon.png" alt="img">
            <img id="p_close" class="icon hidden_icon" src="./img/yjk_icon.png" alt="img">
        </div>
        <div class="item" id="password2Box" style="opacity: 0;">
            <img class="icon" src="./img/mm_icon.png" alt="img">
            <input id="password2" type="password" class="ipt" placeholder="Xác nhận mật khẩu">
            <img id="p2_open" class="icon" src="./img/yjg_icon.png" alt="img">
            <img id="p2_close" class="icon hidden_icon" src="./img/yjk_icon.png" alt="img">
        </div>
        <div class="item">
            <img class="icon" src="./img/yzm_icon.png" alt="img">
            <input id="code" type="text" class="ipt" placeholder="Mã xác nhận">
            <div class="otp" id="otp" onclick="getCode()"></div>
        </div>
    </div>
    <!-- form tab -->
    <img class="tab1" style="position: absolute;z-index: 2;top: 80vw;left: calc(50% - 36vw);width: 72vw;height: auto;"
        src="./img/btan_zc.png" alt="img">
    <img class="tab2" style="position: absolute;z-index: 1;top: 80vw;left: calc(50% - 36vw);width: 72vw;height: auto;"
        src="./img/btan_yc.png" alt="img">
    <img class="login_tab" style="position: absolute;z-index: 3;top: 81.5vw;left: 53.5vw;width: 28vw;height: auto;"
        src="./img/btan_wzzc.png" alt="img">
    <img class="register_tab" style="position: absolute;z-index: 3;top: 81vw;left: 21vw;width: 22vw;height: auto;"
        src="./img/btan_wzyc.png" alt="img">
    <!-- download button -->
    <div class="download_btn">
        <img class="download_btn_bg" src="./ani/xz.png" alt="img">

        <img class="download_btn_ball" src="./ani/cm.png" alt="img">

        <div class="download_box">

            <img class="download_box_arrow" src="./ani/xz_icon.png" alt="img">
            <img class="download_box_base" src="./ani/xz_icon2.png" alt="img">
        </div>
    </div>
    <!-- web button -->
    <img style="position: absolute;z-index: 2;top: 168vw;left: calc(50% - 35vw);width: 70vw;height: auto;"
        src="./img/Button_02.png" alt="img">

    <!-- jackpot -->
    <img style="position: absolute;z-index: 1;top: 192vw;left: 0;width: 100vw;height: auto;" src="./img/btszgd_sz.png"
        alt="img">
    <div
        style="top: 212vw;left: 50%;transform:translateX(-50%);position: absolute;z-index: 2;font-size: 5vw;font-weight: bold;color: #FAD054;text-shadow: #C20089 0em 0.05em 0.05em">
        112,345,678,900</div>

    <!-- swiper -->
    <div class="swiper">
        <div class="swiper_box">
            <img class="swiper_item" src="./img/banner_01.png" alt="img">
            <img class="swiper_item" src="./img/banner_01.png" alt="img">
            <img class="swiper_item" src="./img/banner_01.png" alt="img">
            <img class="swiper_item" src="./img/banner_01.png" alt="img">
        </div>

        <div class="swiper_dots">
            <div class="swiper_dot active_dot"></div>
            <div class="swiper_dot"></div>
            <div class="swiper_dot"></div>
            <div class="swiper_dot"></div>
        </div>
    </div>

    <script>
        let swiperIndex = 0

        setInterval(() => {
            swiperIndex++
            if (swiperIndex >= 4) {
                swiperIndex = 0
            }
            renderSwiper()
        }, 3000)

        function renderSwiper() {
            const swiper_box = document.querySelector('.swiper_box')
            swiper_box.style.transform = `translateX(-${swiperIndex * 80}vw)`

            const swiper_dots = document.querySelector('.swiper_dots')
            let str = ''
            for (let i = 0; i < 4; i++) {
                str += `<div class="swiper_dot ${i == swiperIndex ? 'active_dot' : ''}"></div>`
            }
            swiper_dots.innerHTML = str
        }
    </script>

    <!-- bottom -->
    <img style="position: absolute;z-index: 1;top: 295vw;left: 5vw;width: 90vw;height: auto;" src="./img/dsf_lj.png"
        alt="img">
    <img style="position: absolute;z-index: 1;top: 381vw;left: 5vw;width: 90vw;height: auto;" src="./img/dsf_lj2.png"
        alt="img">
    <img style="position: absolute;z-index: 1;top: 412vw;left: 10vw;width: 80vw;height: auto;" src="./img/dsf_lj3.png"
        alt="img">



    <script src="./js/index.js"></script>
    <script>

        function loginSuccess() {
            console.error('登录成功')
        }

    </script>
</body>

</html>